package com.itheima.mapper;

import com.itheima.pojo.SetmealReport;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDao {

    @Select("SELECT count(*) from t_order WHERE orderDate = #{date} and orderStatus = '已到诊' ")
    Integer getTodayVisitsNumber(String date);


    Integer getVisitsNumberBydates(@Param("dates") List<String> dates);


    Integer getOrderNumberByDate(@Param("dates") List<String> dates);

    @Select("SELECT count(*) from t_order WHERE orderDate = #{date} ")
    Integer getTodayOrderNumber(String date);
}
